package org.ecloud;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/** 
 * 服务注册中心-主类
 *
 * <pre> 
 * project: ecloud-eureka
 * author: eddy
 * email: xqxyxchy@126.com
 * date: 2018年3月5日-下午9:03:14
 * rights: eddy
 * </pre>
 */
@EnableEurekaServer
@SpringBootApplication
public class EurekaApplication implements CommandLineRunner {

	private static Logger logger = LoggerFactory.getLogger(EurekaApplication.class);
	
	public static void main(String[] args) throws IOException {
		logger.info("Starting Eureka.");
		SpringApplication.run(EurekaApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		logger.info("Started Eureka.");
	}

}
